<h1>New bug_list</h1>

<%= error_messages_for :bug_list %>

<% form_for(@bug_list) do |f| %>
  <p>
    <b>Project</b><br />
    <%= f.text_field :project %>
  </p>

  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', bug_lists_path %>

<br />
<hr>
<br />

<head>
<%= stylesheet_link_tag 'teststylesheet' %>
</head>


<h1 align="left"><a href="<%= @host %>/projects">Projects</a> >> <a href="<%= @host %>/bug_lists/for_project/<%= @project.id %>"><%= @project.name %> </a> >> Bug Lists</h1>

<% form_for(@bug_list) do |f| %>
<h4>Create New Bug List</h4>

<form id="bug_lists-create--form" class="create" method="post" action="/bug_lists">
<input type="hidden" id="id" name="id" value="<%= @project.id %>" />
<ol class="form">
  <li class="form-element">
    <dl>
      <dt><label>Display Name</label></dt>
      <dd><input id="display_name" class="display_name-input" type="text" size="20" name="display_name"/></dd>
    </dl>
  </li>

  <li class="form-element">
    <dl>
      <dt><label>Description</label></dt>
      <dd><textarea id="description" rows="10" name="description" cols="100"></textarea></dd>
    </dl>
  </li>

  <li class="form-element">
    <dl>
      <dt><label>Expert Query</label></dt>
      <dd><textarea id="expert_query" rows="10" cols="100" name="expert_query"></textarea></dd>
    </dl>
  </li>

  <li class="form-element">
    <dl>
      <dt><label>Ownership Model</label></dt>
      <dd>
        <select id="ownership_model_id" name="ownership_model_id">
          <option selected="selected" value="">- select -</option>
          <option value="996274667">Early Defect Analysis (EDA)</option>
          <option value="774840200">Owner = Engineer then De-Manager</option>
          <option value="1056338246">Owner is De-Manager</option>
          <option value="706221917">State Based - I state owner = Engineer then De-Manager</option>
          <option value="306916864">State Based - default</option>
        </select>
      </dd>
    </dl>
  </li>

  <li class="form-element">
    <dl>
      <dt><label>Use Projections</label></dt>
      <dd> 
        <select id="use_projections" name="use_projections">
          <option selected="selected" value="">- select -</option>
          <option value="1">True</option>
          <option value="0">False</option>
        </select>
      </dd>
    </dl>
  </li>

  <li class="form-element">
    <dl>
      <dt><label>Use ownership change</label></dt>
      <dd>
        <select id="use_ownership_change" name="use_ownership_change">
          <option selected="selected" value="">- select -</option>
          <option value="1">True</option>
          <option value="0">False</option>
        </select>
      </dd>
    </dl>
  </li>

  <li class="form-element">
    <dl>
      <dt><label>Is verification list</label></dt>
      <dd>
        <select id="is_verification_list" name="is_verification_list">
          <option selected="selected" value="">- select -</option>
          <option value="1">True</option>
          <option value="0">False</option>
        </select>
      </dd>
    </dl>
  </li>
</ol>

<p class="form-footer">
  <%= f.submit "Create" %>
  <a class="cancel" href="/bug_lists/for_project/<%= @project.id %>">Cancel</a>
</p>
</form>
<% end %>
